From: Keir Fraser Date: Thu, 20 Dec 2007 13:48:27 +0000 (+0000) Subject: Xend: don't check for device reuse if the device has no uname. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14445^2~104 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=1f7f827c82afaff5071d612bf05a3408d5d7f10c;p=xen.git Xend: don't check for device reuse if the device has no uname. Signed-off-by: Tim Deegan --- diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index 2ca65a525c..0e970b6293 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -985,7 +985,7 @@ class XendConfig(dict): dev_uname = dev_info.get('uname') blkdev_name = dev_info.get('dev') devid = self._blkdev_name_to_number(blkdev_name) - if devid == None: + if devid == None or dev_uname == None: return for o_dev_type, o_dev_info in defined_devices_sxpr: